const mongoose = require('./index')

let Schema = mongoose.Schema

module.exports = mongoose.model('Articals', new Schema({
  author: {
    type: String,
    required: true
  },
  title: {
    type: String,
    required: true
  },
  unload_time: {
    type: Date,
    default: Date.now
  },
  modyfyDate: {
    type: Date,
    default: Date.now
  },
  content: {
    type: String,
    required: true
  },
  like: {
    type: String,
    default: 0
  },
  collect: {
    type: String,
    default: 0
  }
}))
